<?php

defined('_JEXEC') or die;

class modLocationsHelper
{
	static function loadLocations()
	{
		$db = JFactory::getDbo();
		$query = $db->getQuery(true);
		$query->select("*")
			->from("#__bakery_locations")
			->where("state = 1");
		$db->setQuery($query);
		return $db->loadObjectList();	
	} 
}
